package com.lzp.systemopt.camera

import android.app.Activity
import com.lzp.systemopt.camera.view.CameraSurfaceView

/**
 * @description:
 * @author: lxp
 * @date: 2022/1/22 上午10:27
 */
interface ICameraManager : ICamera, ICapturePicture, ICaptureVideo{

}

interface ICamera {
    fun initCamera(activity: Activity, cameraSurfaceView: CameraSurfaceView)
    fun setCaptureListener(listener: CaptureListener?)
    fun requestSwitchCamera()
    fun releaseCamera(reason: String)
}

interface ICapturePicture {
    fun startCapturePicPreView()
    fun stopCapturePicPreView()
    fun capturePic()
}

interface ICaptureVideo {
    fun startCaptureVideoPreview()
    fun stopCaptureVideoPreview()
    fun captureVideo()
    fun stopCaptureVideo()
}